﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace FooFun.Web.Controls
{
    [ParseChildren(false)]
    public class NormalContent : NamedContent
    {
        public NormalContent()
        {
            base.Name = Normal;
        }
    }

    [ParseChildren(false)]
    public class ErrorContent : NamedContent
    {
        public ErrorContent()
        {
            base.Name = Error;
        }

        public Exception InnerException { get; set; }
    }

    [ParseChildren(false)]
    public class EmptyContent : NamedContent
    {
        public EmptyContent()
        {
            base.Name = Empty;
        }
    }

    [ParseChildren(false), PersistChildren(true)]
    public class NamedContent : Control
    {
        public const string Error = "Error";
        public const string Empty = "Empty";
        public const string Normal = "Normal";

        public string Name { get; set; }
    }
}
